Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.drive.actions--filters

This contribution is part of XML component org.nuxeo.drive.actions inside nuxeo-drive-jsf-5.8.jar

Extension Point

Extension point filters of component ActionService.

Contributed Items

  • <filter id="can_sync_current_doc">
          <rule grant="false">
            <type>Domain</type>
            <type>SectionRoot</type>
            <type>TemplateRoot</type>
            <type>WorkspaceRoot</type>
            <type>Forum</type>
    
            <!-- Section sync is disabled until we implement proper support for proxies sync -->
            <type>Section</type>
          </rule>
          <rule grant="true">
            <condition>#{canSynchronizeCurrentDocument}</condition>
          </rule>
        </filter>
  • <filter id="can_unsync_current_doc">
          <rule grant="true">
            <condition>#{canUnSynchronizeCurrentDocument}</condition>
          </rule>
        </filter>
  • <filter id="can_navigate_to_current_synchronization_root">
          <rule grant="true">
            <condition>#{canNavigateToCurrentSynchronizationRoot}
            </condition>
          </rule>
        </filter>
  • <filter id="can_drive_edit">
          <rule grant="true">
            <condition>#{canEditCurrentDocument}</condition>
          </rule>
        </filter>

XML Source

<extension point="filters" target="org.nuxeo.ecm.platform.actions.ActionService">

    <filter id="can_sync_current_doc">
      <rule grant="false">
        <type>Domain</type>
        <type>SectionRoot</type>
        <type>TemplateRoot</type>
        <type>WorkspaceRoot</type>
        <type>Forum</type>

        <!-- Section sync is disabled until we implement proper support for proxies sync -->
        <type>Section</type>
      </rule>
      <rule grant="true">
        <condition>#{canSynchronizeCurrentDocument}</condition>
      </rule>
    </filter>

    <filter id="can_unsync_current_doc">
      <rule grant="true">
        <condition>#{canUnSynchronizeCurrentDocument}</condition>
      </rule>
    </filter>

    <filter id="can_navigate_to_current_synchronization_root">
      <rule grant="true">
        <condition>#{canNavigateToCurrentSynchronizationRoot}
        </condition>
      </rule>
    </filter>

    <filter id="can_drive_edit">
      <rule grant="true">
        <condition>#{canEditCurrentDocument}</condition>
      </rule>
    </filter>
  </extension>